﻿extends layout

block content
	form(method='get', action='/logout')
		h4 U R = #{username}
			input(type='submit', value='logout')
	form(method='post', action='/create')
		h3 방이름 : 
			input(type='text',name='roomname')
			input(type='submit', value='방만들기')
	table
		thead
			tr
				th 게임이름
				th 참가자
				th 참여
		tbody
			each obj in rooms
				tr
					td=obj.name
					td=obj.user
					td
						a(href='/joingame/#{obj.name}')=obj.name